<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<div class="content-wrap">
        <div class="wrapper" style="bottom: 50px;">
            <ul class="nav nav-tabs">
                <li>
                    <a href="#"  onclick="loadDiv('mainCenterDiv','${ctx}/sys/tUnitFz/index')">单位分组列表</a>
                </li>
                <li class="active">
                    <a href="#" onclick="loadDiv('mainCenterDiv','${ctx}/sys/baseUnit/addGroupForm')">
                                添加分组
                    </a>
                </li>
            </ul>
                <section class="panel panel-default">
                    <div class="panel-body">
                        <div class="col-lg-12">
                            <form:form id="inputForm" data-parsley-validate="" modelAttribute="tUnitFz" onsubmit="return formSaveLoad('mainCenterDiv','inputForm','${ctx}/sys/tUnitFz/save','${ctx}/sys/tUnitFz/index');" method="post" class="form-horizontal">
                                    <%--<input type="hidden" name="unitId" id="unitId" value="${baseUnit.id}">--%>
                                <div class="form-group">
                                <label class="col-sm-4 control-label">分组名称：</label>
                                <div class="col-sm-4">
                                    <input name="name" id="name" class="form-control"  maxlength="200" data-parsley-required="true"/>
                                </div>
                            </div>
                                <div class="form-group">
                                    <label class="col-sm-4 control-label">合同单位：</label>

                                    <div class="col-sm-4">
                                            <%-- <input name="chargeType" class="form-control"  maxlength="100" />--%>
                                        <select name="unitId" class="form-control" id="unitId">
                                            <c:forEach items="${list}"
                                                       var="list">
                                                <c:choose>
                                                    <c:when test="${list.id}">
                                                        <option value="${list.id}" selected="selected">${list.name}</option>
                                                    </c:when>
                                                    <c:otherwise>
                                                        <option value="${list.id}">${list.name}</option>
                                                    </c:otherwise>
                                                </c:choose>

                                            </c:forEach>
                                        </select>
                                    </div>
                                </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label">限制金额：</label>
                                <div class="col-sm-4">
                                    <input name="limitPay" id="limitPay" class="form-control" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label">收费方式：</label>
                                <div class="col-sm-4">
                                    <sys:select lists="${fns:getDictList('PAY_WAY_DICT')}" className="form-control" name="sffs"></sys:select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label">性别：</label>
                                <div class="col-sm-4">
                                    <sys:select lists="${fns:getDictList('SEX_DICT')}" className="form-control" name="allowSex"></sys:select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label">最大年龄：</label>
                                <div class="col-sm-4">
                                    <input name="ageHigh" id="ageHigh" class="form-control"  maxlength="11"/>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label">最小年龄：</label>
                                <div class="col-sm-4">
                                    <input name="ageLow" id="ageLow" class="form-control"  maxlength="11"/>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-4 control-label">备注信息：</label>
                                <div class="col-sm-4">
                                    <textarea name="remarks" id="remarks" rows="3" maxlength="200" class="form-control"/>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-offset-4 col-sm-10">
                                    <input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存">&nbsp;
                                    <input id="btnCancel" class="btn" type="button" value="返 回" onclick="loadDiv('mainCenterDiv','${ctx}/sys/tUnitFz/index')">
                                </div>
                            </div>
                        </form:form>
            </section>
        </div>
    </div>